package maple.thelittleredbook.user.dto;

import lombok.Data;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;

@Data
public class EmailVerificationRequestDTO {

    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;

    @NotBlank(message = "验证用途不能为空")
    @Pattern(regexp = "^(email_verification|password_reset)$", message = "验证用途不正确")
    private String purpose;
}